package com.nd.qa.shareplate.model;

import java.io.Serializable;


/**
 * <p>页面元素类</p>
 * <param>elementId:元素id</param>
 * <param>pageId:页面id</param>
 * <param>elementName:元素名称</param>
 * <param>elementType:元素类型</param>
 * <param>elementTypeFlag:元素类型标识</param>
 * <param>elementContent:元素内容</param>
 * <param>elementOrder:元素顺序</param>
 * <param>elementAction:元素操作类型</param>
 * <param>elementPreciousId:前置元素</param>
 * <param>elementText:输入内容</param>
 * @author huangjian
 * @date 2016-03-10 下午 15:01:06          
 */
public class PageElement implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5130413830089914095L;
	private Integer elementId;
	private Integer pageId;
	private String  pageName;
	private String  elementForPage;
	private String elementName;
	private Integer elementTypeId;
	private String elementTypeName;
	private Integer elementTypeFlag;
	private String elementContent;
	private Integer elementOrder;
	private long elementWaitTime;
	private Integer elementActionId;
	private String elementActionName;
	private Integer elementPreciousId;
	private Integer elementOperationOrder;
	private String elementText;
	private String elementTextFlag;
	private String elementExpectName;
	private String elementExpectContent;
	private String elementExpectType;
	private Integer elementExpectOrder;
	private String elementExpectResult;
	private String elementOperateDesc;
	private Integer dragCount;
	private String createTime;
	private String isIframeFlag;
	private String isSwitchPage;
	private Integer focusTypeId;
	private String focusTypeName;
	private String overIframeFlag;
	private String iframeElementType;
	private String iframeElementContent;
	private String status;
	
	
	
	
	public long getElementWaitTime() {
		return elementWaitTime;
	}
	public void setElementWaitTime(long elementWaitTime) {
		this.elementWaitTime = elementWaitTime;
	}
	public String getFocusTypeName() {
		return focusTypeName;
	}
	public void setFocusTypeName(String focusTypeName) {
		this.focusTypeName = focusTypeName;
	}
	public Integer getFocusTypeId() {
		return focusTypeId;
	}
	public void setFocusTypeId(Integer focusTypeId) {
		this.focusTypeId = focusTypeId;
	}
	public String getIsSwitchPage() {
		return isSwitchPage;
	}
	public void setIsSwitchPage(String isSwitchPage) {
		this.isSwitchPage = isSwitchPage;
	}
	public String getOverIframeFlag() {
		return overIframeFlag;
	}
	public void setOverIframeFlag(String overIframeFlag) {
		this.overIframeFlag = overIframeFlag;
	}
	public String getIsIframeFlag() {
		return isIframeFlag;
	}
	public void setIsIframeFlag(String isIframeFlag) {
		this.isIframeFlag = isIframeFlag;
	}
	public String getIframeElementType() {
		return iframeElementType;
	}
	public void setIframeElementType(String iframeElementType) {
		this.iframeElementType = iframeElementType;
	}
	public String getIframeElementContent() {
		return iframeElementContent;
	}
	public void setIframeElementContent(String iframeElementContent) {
		this.iframeElementContent = iframeElementContent;
	}
	public String getElementExpectType() {
		return elementExpectType;
	}
	public void setElementExpectType(String elementExpectType) {
		this.elementExpectType = elementExpectType;
	}
	public String getElementExpectContent() {
		return elementExpectContent;
	}
	public void setElementExpectContent(String elementExpectContent) {
		this.elementExpectContent = elementExpectContent;
	}
	public String getElementTextFlag() {
		return elementTextFlag;
	}
	public void setElementTextFlag(String elementTextFlag) {
		this.elementTextFlag = elementTextFlag;
	}
	public String getElementExpectName() {
		return elementExpectName;
	}
	public void setElementExpectName(String elementExpectName) {
		this.elementExpectName = elementExpectName;
	}
	public Integer getElementExpectOrder() {
		return elementExpectOrder;
	}
	public void setElementExpectOrder(Integer elementExpectOrder) {
		this.elementExpectOrder = elementExpectOrder;
	}
	public String getElementExpectResult() {
		return elementExpectResult;
	}
	public void setElementExpectResult(String elementExpectResult) {
		this.elementExpectResult = elementExpectResult;
	}
	public String getElementOperateDesc() {
		return elementOperateDesc;
	}
	public void setElementOperateDesc(String elementOperateDesc) {
		this.elementOperateDesc = elementOperateDesc;
	}
	public String getElementForPage() {
		return elementForPage;
	}
	public void setElementForPage(String elementForPage) {
		this.elementForPage = elementForPage;
	}
	public String getPageName() {
		return pageName;
	}
	public void setPageName(String pageName) {
		this.pageName = pageName;
	}
	public Integer getElementTypeFlag() {
		return elementTypeFlag;
	}
	public void setElementTypeFlag(Integer elementTypeFlag) {
		this.elementTypeFlag = elementTypeFlag;
	}
	public Integer getElementOperationOrder() {
		return elementOperationOrder;
	}
	public void setElementOperationOrder(Integer elementOperationOrder) {
		this.elementOperationOrder = elementOperationOrder;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public Integer getElementPreciousId() {
		return elementPreciousId;
	}
	public void setElementPreciousId(Integer elementPreciousId) {
		this.elementPreciousId = elementPreciousId;
	}
	public String getElementTypeName() {
		return elementTypeName;
	}
	public void setElementTypeName(String elementTypeName) {
		this.elementTypeName = elementTypeName;
	}
	public String getElementActionName() {
		return elementActionName;
	}
	public void setElementActionName(String elementActionName) {
		this.elementActionName = elementActionName;
	}
	public Integer getDragCount() {
		return dragCount;
	}
	public void setDragCount(Integer dragCount) {
		this.dragCount = dragCount;
	}
	
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getElementText() {
		return elementText;
	}
	public void setElementText(String elementText) {
		this.elementText = elementText;
	}
	public Integer getElementId() {
		return elementId;
	}
	public void setElementId(Integer elementId) {
		this.elementId = elementId;
	}
	public Integer getPageId() {
		return pageId;
	}
	public void setPageId(Integer pageId) {
		this.pageId = pageId;
	}
	public String getElementName() {
		return elementName;
	}
	public void setElementName(String elementName) {
		this.elementName = elementName;
	}
	public String getElementContent() {
		return elementContent;
	}
	public void setElementContent(String elementContent) {
		this.elementContent = elementContent;
	}
	public Integer getElementOrder() {
		return elementOrder;
	}
	public void setElementOrder(Integer elementOrder) {
		this.elementOrder = elementOrder;
	}
	public Integer getElementTypeId() {
		return elementTypeId;
	}
	public void setElementTypeId(Integer elementTypeId) {
		this.elementTypeId = elementTypeId;
	}
	public Integer getElementActionId() {
		return elementActionId;
	}
	public void setElementActionId(Integer elementActionId) {
		this.elementActionId = elementActionId;
	}	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof PageElement)) {
			return false;
		}
		PageElement elem = (PageElement) obj;
		System.out.println("this:" + this.toString());
		System.out.println(elem.toString());
		return elem.getElementTypeName().equals(elementTypeName) && elem.getElementId().equals(elementId)
				&& elem.getElementOrder().equals(elementOrder) && elem.getElementActionName().equals(elementActionName)
				&& elem.getElementContent().equals(elementContent) && elem.getPageId().equals(pageId)
				&& elem.getElementPreciousId().equals(elementPreciousId);
	}
	@Override
	public String toString() {
		return  "elementTypeName:" + elementTypeName + "|elementId:" + elementId
				+ "|elementOrde:"+ elementOrder + "|elementActionName:" + elementActionName
				+ "|elementContent:" + elementContent + "|pageId:" + pageId
				+ "|elementPrecious:" + elementPreciousId;
	}
}
